package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.MessageReceiveMapper;
import com.ruoyi.system.domain.MessageReceive;
import com.ruoyi.system.service.IMessageReceiveService;

/**
 * 消息接收管理Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-01-06
 */
@Service
public class MessageReceiveServiceImpl implements IMessageReceiveService 
{
    @Autowired
    private MessageReceiveMapper messageReceiveMapper;

    /**
     * 查询消息接收管理
     * 
     * @param id 消息接收管理主键
     * @return 消息接收管理
     */
    @Override
    public MessageReceive selectMessageReceiveById(Long id)
    {
        return messageReceiveMapper.selectMessageReceiveById(id);
    }

    /**
     * 查询消息接收管理列表
     * 
     * @param messageReceive 消息接收管理
     * @return 消息接收管理
     */
    @Override
    public List<MessageReceive> selectMessageReceiveList(MessageReceive messageReceive)
    {
        return messageReceiveMapper.selectMessageReceiveList(messageReceive);
    }

    /**
     * 新增消息接收管理
     * 
     * @param messageReceive 消息接收管理
     * @return 结果
     */
    @Override
    public int insertMessageReceive(MessageReceive messageReceive)
    {
        return messageReceiveMapper.insertMessageReceive(messageReceive);
    }

    /**
     * 修改消息接收管理
     * 
     * @param messageReceive 消息接收管理
     * @return 结果
     */
    @Override
    public int updateMessageReceive(MessageReceive messageReceive)
    {
        return messageReceiveMapper.updateMessageReceive(messageReceive);
    }

    /**
     * 批量删除消息接收管理
     * 
     * @param ids 需要删除的消息接收管理主键
     * @return 结果
     */
    @Override
    public int deleteMessageReceiveByIds(Long[] ids)
    {
        return messageReceiveMapper.deleteMessageReceiveByIds(ids);
    }

    /**
     * 删除消息接收管理信息
     * 
     * @param id 消息接收管理主键
     * @return 结果
     */
    @Override
    public int deleteMessageReceiveById(Long id)
    {
        return messageReceiveMapper.deleteMessageReceiveById(id);
    }
}
